package com.hdit.guimei.service.impl;

import com.hdit.guimei.domain.Payment;
import com.hdit.guimei.mapper.PaymentMapper;
import com.hdit.guimei.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 张宝玉
 * @date 2021/1/21 15:00
 */
@Service
public class PaymentServiceImpl implements PaymentService {
    @Autowired
    public PaymentMapper paymentMapper;
    @Override
    public int addpeyment(Payment payment) {
        int i = paymentMapper.addpayment(payment);
        return i;
    }

    @Override
    public int delepayment(int payment_id) {
        int i = paymentMapper.delepayment(payment_id);
        return i;
    }
}
